package com.shop.cereshop.app.tencent.im.service;

import com.shop.cereshop.app.tencent.im.model.coupon.ReceiveCouponParam;
import com.shop.cereshop.commons.result.Result;

/**
 * @description: 优惠券消息服务
 * @author zdd
 * @date 2025/11/10
 * @version 1.0
 */
public interface CouponMsgService {

  /**
   * 用户从IM消息中领取优惠券
   * 用户点击IM优惠券消息时调用此接口，完成优惠券的领取
   *
   * @param buyerUserId 用户ID
   * @param param       领取参数
   * @return 领取结果
   */
  Result<Void> receiveCoupon(Long buyerUserId, ReceiveCouponParam param);

}
